package com.quick.shiro.feign;

import com.quick.common.dto.UserAdminDto;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * @author ：chicunxiang
 * @date ：Created in 2021/1/28 10:47
 * @description：
 * @version: 1.0
 */
public interface AdminFeignApi {

    @GetMapping("/findAdminFromUsername")
    List<UserAdminDto> findAdminFromUsername(@RequestParam("username") String username);

    @PostMapping("/queryRoleByIds")
    Set<String> queryRoleByIds(@RequestBody List<String> roleIdList);

    @PostMapping("/queryPermissionByRoleIds")
    Set<String> queryPermissionByRoleIds(@RequestBody List<String> roleIdList);
}
